<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %> 
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>超时赔付流程附加信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
	<form id="formSet1">
		<div class="fieldset1 tabel_col clearFix">
			<div class="caption">
				<span class="title">基本信息</span>
			</div>
			<div class="fieldBox col_33">
				<div class="label">承租人名称</div>
				<div class="field">
					<span name="cstMgrNm" id="cstMgrNm">${claimInfo.cstNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">租赁合同号</div>
				<div class="field">
					<span >${claimInfo.contNo}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">支付表号</div>
				<div class="field">
					<span>${claimInfo.paySchNo}&nbsp;</span>
				</div>
			</div>
			<div class="caption">
				<span class="title">项目信息</span>
			</div>
			<div id="project" class="fieldBox col_100">
		        <div class="sqPanel">
		            <div class="sqPanel_body">
		                <div id="ligergrid_project" class="sq-grid"></div>
		            </div>
		        </div>
		    </div>
		    <div class="caption">
				<span class="title">&nbsp;</span>
			</div>
			<div class="sqPanel" >
		            <div class="sqPanel_body" id="capPayInfoflow">
		            </div>
		    </div>
			
		    <div class="caption">
				<span class="title">放款帐号信息</span>
			</div>
			<c:forEach items="${claimInfo.payeeList}" var="payee">
			<div class="fieldBox col_50">
				<div class="label">收款方类型</div>
				<div class="field">
					<select name="payeeTypCd" id="payeeTypCd" data-value="">
						<option value="" checked >请选择</option>
						<c:forEach items="${payeeTypCdList}" var="kv">
							<c:choose>
								<c:when test="${kv.key==payee.payeeTypCd}">
									<option value="${kv.key}" selected="selected" >${kv.value}</option>
								</c:when>
								<c:otherwise>
									<option value="${kv.key}" >${kv.value}</option>
								</c:otherwise>
							</c:choose>		
						</c:forEach>
					</select>
					<span style="color:red;">*</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">收款单位</div>
				<div class="field" >
					<input name="rcptUnt" id="rcptUnt" type="text" class="ui-textbox" value="${payee.rcptUnt}" validate="{required:true}"/>
					<span style="color:red;">*</span>
				</div>
			</div>
			
			<div class="fieldBox col_50">
				<div class="label">账户类型</div>
				<div class="field">
					<select name="bkAccTypCd" id="bkAccTypCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${bkAccTypCdList}" var="kv">
							<c:choose>
								<c:when test="${kv.key == payee.bkAccTypCd}">
									<option value="${kv.key}" selected="selected" >${kv.value}</option>
								</c:when>
								<c:otherwise>
									<option value="${kv.key}" >${kv.value}</option>
								</c:otherwise>
							</c:choose>		
						</c:forEach>
					</select>
					<span style="color:red;">*</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">开户行</div>
				<div class="field">
					<input name="payeeBkNm" id="payeeBkNm" type="text" class="ui-textbox" value="${payee.payeeBkNm}"  />
					<span style="color:red;">*</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">开户行号</div>
				<div class="field">
					<input name="payeeBkNo" id="payeeBkNo" type="text" class="ui-textbox" value="${payee.payeeBkNo}"  />
					<span style="color:red;">*</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">收款帐号</div>
				<div class="field">
					<input name="accNo" id="accNo" type="text" class="ui-textbox" value="${payee.accNo}"  />
					<span style="color:red;">*</span>
				</div>
			</div>
			
			
			<div class="caption">
				<span class="title">付款信息（放款帐号）</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label">应付金额（元）</div>
				<div class="field">
					<input name="claimAmt" id="claimAmt" type="text" class="ui-textbox" value="${claimInfo.claimAmt/100}"  />
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">付款方式</div>
				<div class="field">
					<select name="payWayCd" id="payWayCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${payWayCdList}" var="kv">
							<c:choose>
								<c:when test="${kv.key == payee.payWayCd}">
									<option value="${kv.key}" selected="selected" >${kv.value}</option>
								</c:when>
								<c:otherwise>
									<option value="${kv.key}" >${kv.value}</option>
								</c:otherwise>
							</c:choose>		
						</c:forEach>
					</select>
					<span style="color:red;">*此付款信息已发送网银</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">实付金额</div>
				<div class="field">
					<input name="payClaimAmt" id="payClaimAmt" type="text" class="ui-textbox" value="${payee.actPayAmt/100}" />	
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">实付时间</div>
				<div class="field">
					<input  name="claimTm" id="claimTm" type="text" class="ui-datepicker" value="${payee.actPayTms}" />
				</div>
			</div>
			</c:forEach>
		</div>
		<div class="btnsBox">
			<c:if test="${isDetail==0 }">
				<span id="saveBtn1" class="sq-button sq-button-round" onclick="addCreditInfo();">保存</span>
			</c:if>
			<c:if test="${isDetail==1 }">
			</c:if>
	        <input name="claimId" id="claimId" type="hidden" value="${claimInfo.id}" />
	        <input name="payId" id="payId" type="hidden" value="${claimInfo.payId}" />
	    </div>
	</form>
</div>
<script type="text/javascript">
var _projectId = '${projectId}';//项目ID
var _proIntId = '${proIntId}';//流程实例ID
var _taskId = '${taskId}';//任务节点ID
var _taskDefKey = '${taskDefKey}';//任务节点KEY
var _taskNm = '${taskNm}';//节点名称
var _prdTypCd = '${prdTypCd}';//产品类型
var isDetail = '${isDetail}';
var ctrlKey = '${ctrlKey}';

$(function () {
	$('#formSet1').ligerForm({
        validate : true
	});
	initProjectList();//初始化项目信息
	initFlowTaskInfoH();//初始化放款流程
	disableFixedFiled();//设置禁用
	SET_popupIframeHeight();
	$("#rcptUnt").click(function (event) {
		chosePayeeAcct();
	});
});



//禁用页面固定字段
function disableFixedFiled(){
	if(isDetail&&isDetail=="0"){
		if(ctrlKey&&ctrlKey!="3"){
			if(liger.get("payeeTypCd")){
				liger.get("payeeTypCd").setDisabled(true);
			}
			if(liger.get("rcptUnt")){
				liger.get("rcptUnt").setDisabled(true);
			}
			
		}
		if(liger.get("bkAccTypCd")){
			liger.get("bkAccTypCd").setDisabled(true);
		}
		if(liger.get("payeeBkNm")){
			liger.get("payeeBkNm").setDisabled(true);
		}
		if(liger.get("payeeBkNo")){
			liger.get("payeeBkNo").setDisabled(true);
		}
		if(liger.get("accNo")){
			liger.get("accNo").setDisabled(true);
		}
		if(liger.get("claimAmt")){
			liger.get("claimAmt").setDisabled(true);
		}
		if(liger.get("payWayCd")){
			liger.get("payWayCd").setDisabled(true);
		}
		if(ctrlKey&&ctrlKey!="2"){
			if(liger.get("payClaimAmt")){
				liger.get("payClaimAmt").setDisabled(true);
			}
			if(liger.get("claimTm")){
				liger.get("claimTm").setDisabled(true);
			}
		}
	}else{
		if(liger.get("payeeTypCd")){
			liger.get("payeeTypCd").setDisabled(true);
		}
		if(liger.get("rcptUnt")){
			liger.get("rcptUnt").setDisabled(true);
		}
		if(liger.get("bkAccTypCd")){
			liger.get("bkAccTypCd").setDisabled(true);
		}
		if(liger.get("payeeBkNm")){
			liger.get("payeeBkNm").setDisabled(true);
		}
		if(liger.get("payeeBkNo")){
			liger.get("payeeBkNo").setDisabled(true);
		}
		if(liger.get("accNo")){
			liger.get("accNo").setDisabled(true);
		}		
		if(liger.get("claimAmt")){
			liger.get("claimAmt").setDisabled(true);
		}
		if(liger.get("payWayCd")){
			liger.get("payWayCd").setDisabled(true);
		}		
		if(liger.get("payClaimAmt")){
			liger.get("payClaimAmt").setDisabled(true);
		}
		if(liger.get("claimTm")){
			liger.get("claimTm").setDisabled(true);
		}		
	}		
}
function submitCredit(){
	var wait_dialog;
    $.ajax({
		type: 'post',
		dataType:'json',
		url: '<%=path%>/project/audit/submitCredit.do?prjId=${projectId}',
		beforeSend: function(){
	          wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 UIUtils.alertSuccessHold1(msg.info);
				 window.location.reload();
			 }else{
				 UIUtils.alertErrorHold1(msg.info);
			 }
		}
	});
}

//初始化项目列表
function initProjectList(){
	if(!_projectId)return;
	guarantorGrid = $("#ligergrid_project").ligerGrid({
        url: '<%=path%>/capital/capclaiminfo/initProjectList.do',
        method: 'get',
        parms:{
        	prjId:_projectId
        },
        columns: [
			{ display: '项目名称', name: 'prjNm', align:'left',minWidth: 140 ,
				render: function (rowdata, rowindex, value, column) { 
					var h = '';
						if(value&&value!="null"){
					    h+='<a href="javascript:detailBtn(';
			            h+="'"+rowdata.id+"'";
			            h+=')">'+value+'</a>'
						}
			            return h;
					},
				enabledSort:true}, 
			 { display: '合同号', name: 'lsCntNo', minWidth: 140 , enabledSort:true}, 
			{ display: '客户', name: 'cstNm', minWidth: 140,align:'center', enabledSort:true},
			{ display: '客户经理', name: 'cstMgrNm', minWidth: 140,align:'center', enabledSort:true},
			{ display: '所属机构', name: 'buOrgCdNm', width: 100 , enabledSort:true},
			{ display: '省公司', name: 'prOrgCdNm', width: 100 , enabledSort:true},
			{ display: '分公司', name: 'cyOrgCdNm', width: 100 , enabledSort:true},
			{ display: '项目类型', name: 'prjTypCdNm', width: 150, enabledSort:true},
			{ display: '业务模式', name: 'bizTypCdNm', minWidth: 140 , enabledSort:true},
			{ display: '项目状态', name: 'prjStsCdNm', minWidth: 100 , enabledSort:true},
			 { display: '申请单号', name: 'pNo', minWidth: 140 , 
			  	render: function (rowdata, rowindex, value, column) { 
					var h = '';
					if(value&&value!="null"){
						if(StringUtils.isNotEmpty(rowdata.buOrgCd) && rowdata.buOrgCd==ProjectConstant.CODE_BU_ORG_CD_CAR){
			    		    h+='<a href="javascript:commShowFlowForCarBiz(';
						}else if(StringUtils.isNotEmpty(rowdata.buOrgCd) && rowdata.buOrgCd==ProjectConstant.CODE_BU_ORG_CD_ZC){
							if(StringUtils.isNotEmpty(rowdata.cstMgrOrgCd)){
								var orgCd = rowdata.cstMgrOrgCd;
								var orgCd_1 = orgCd.substring(0,12);
								if(orgCd_1=='000000080002'){//专车客车
			            		    h+='<a href="javascript:commShowFlowForBusKCBiz(';
								}else{
			            		    h+='<a href="javascript:commShowFlowForBusBiz(';
								}
							}else{
			        		    h+='<a href="javascript:commShowFlowForBusBiz(';
							}
						}else{
							if(rowdata.prjTypCd=='DSFGHKDCPSZ'){
			        		    h+='<a href="javascript:commShowTempFlow(';
							}else{
			        		    h+='<a href="javascript:commShowFlow(';
							}
						}
					    h+="'"+rowdata.pInstId+"',";
					    h+="'"+rowdata.prjStsCd+"',";
					    h+="'"+rowdata.id+"'";
					    h+=')">'+value+'</a>'
					}
			        return h;
				},
				enabledSort:true}, 
			{ display: '数据来源', name: 'dsCdNm', minWidth: 100 , enabledSort:true},
			{ display: '创建时间', name: 'crtTm', minWidth: 100 , render:renderDate, enabledSort:true}
            ],
        onBeforeEdit: function (e) {},
        onBeforeShowData: function(){SetIframe_height();},
        onAfterShowData: function(){SetIframe_height();},
        pageSize:100,
        usePagerOnLessPagesize: false,
        root: 'rows',
        record: 'total',
        hideLoadButton: true,
        width: '100%',
        height: 300,
        heightDiff: -2,
        enabledEdit: true,
        isScroll: false,
        checkbox: false,
        rownumbers: true,
        allowUnSelectRow: true,
        alternatingRow: false
    });
}
function detailBtn(id){
	var fromPrjFlag = true;
	var detailFlag = true;
	Add_navTab('tab_project_detail'+id,'项目详情','<%=path%>/project/prjbscinfo/toModifyPage.do?fromPrjFlag='+fromPrjFlag+'&&id='+id+'&&detailFlag='+detailFlag);
}

//初始化流程历史节点信息
function initFlowTaskInfoH(){
	var _processInstanceId='${claimInfo.prInsId}';
	var parms = {
		processInstanceId:_processInstanceId,
		claimId:'${claimInfo.id}',
		payId:'${claimInfo.payId}'
	}
	var _url = '<%=path%>/capital/capclaiminfo/initPayFlowList.do';
 	AjaxUtils.ajaxGet(_url, parms, function(msg){
 		 if(msg.success == 1 && msg.data){
			 var html="<div class=\"fieldBox col_33\"><div class=\"label\">节点</div><div class=\"field\"><span>处理时间&nbsp;</span></div></div>";
			 html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span>耗时&nbsp;</span></div></div>";
			 html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span>赔付款拆分&nbsp;</span></div></div>";
			 var allSpendSecond='${claimInfo.takeMsStr}';
			 var lastRow=msg.data.length;
			 $.each(msg.data, function (n, value) {
				 if(n < lastRow){
					  var spendTime="";
					  var spendSecond=value.taskTakeMs/1000;
					  spendTime=fomatTmSeconds(spendSecond);
					  if(spendTime == "0"){
						  spendTime = "";
					  }
					  html+="<div class=\"fieldBox col_33\"><div class=\"label\" title=\""+value.taskDefNm+"\">"+value.taskDefNm+"</div>";
					  html+="<div class=\"field\"><span>"+value.taskTMStr+"&nbsp;</span></div></div>";
					  html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span>"+spendTime+"&nbsp;</span></div></div>";
					  if(spendTime != ""){
						  if(ctrlKey&&ctrlKey=="1"&&isDetail=="0"){
							  html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span><input name=\"taskAmt\" id=\""+value.taskDefKey+"taskAmt\" type=\"text\" class=\"ui-textbox\" value=\""+value.splitAmt/100+"\"  />&nbsp;</span></div></div>";
							  
						  }else{
							  html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span><input name=\"taskAmt\" id=\""+value.taskDefKey+"taskAmt\" type=\"text\" class=\"ui-textbox\" value=\""+value.splitAmt/100+"\" disabled=\"disabled\"  />&nbsp;</span></div></div>";
						  }
					  }else{
						  html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span>&nbsp;</span></div></div>";
					  }
				 }  
			 });
			 html+="<div class=\"fieldBox col_33\"><div class=\"label\">总耗时</div><div class=\"field\"><span>&nbsp;</span></div></div>";
			 html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span>"+allSpendSecond+"&nbsp;</span></div></div>";
			 html+="<div class=\"fieldBox col_33\"><div class=\"field\"><span>&nbsp;</span></div></div>";
			 html+="<input name=\"FKprocessInstanceId\" id=\"FKprocessInstanceId\" type=\"hidden\" value=\""+_processInstanceId+"\" />"
			 $("#capPayInfoflow").empty();
			 $("#capPayInfoflow").html(html);
		 }else{
			 UIUtils.alertError(msg.info);
		 }
	},true);
}
//格式化时间
function renderDate(rowdata, index, value){
	var dateStr = "";
	if(null != value){
		var date = new Date(value);
		dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DDHHMMSS);
	}
	return dateStr;
}
//时间格式转换
function fomatTmSeconds(seconds){
	var time =seconds;
    if (null != time && "" != time) {
        if (time > 60 && time < 60 * 60) {
            time = parseInt(time / 60.0) + "分" + parseInt((parseFloat(time / 60.0) -
                parseInt(time / 60.0)) * 60) + "秒";
        }else if (time >= 60 * 60 && time < 60 * 60 * 24) {
            time = parseInt(time / 3600.0) + "时" + parseInt((parseFloat(time / 3600.0) -
                parseInt(time / 3600.0)) * 60) + "分" +
                parseInt((parseFloat((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60) -
                parseInt((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60)) * 60) + "秒";
        }else if (time >= 60 * 60 * 24) {
            time = parseInt(time / 3600.0/24) + "天" +parseInt((parseFloat(time / 3600.0/24)-
                parseInt(time / 3600.0/24))*24) + "时" + parseInt((parseFloat(time / 3600.0) -
                parseInt(time / 3600.0)) * 60) + "分" +
                parseInt((parseFloat((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60) -
                parseInt((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60)) * 60) + "秒";
        }else {
            time = parseInt(time) + "秒";
        }
    }
    return time;
}
function addCreditInfo(){
    var form = liger.get("formSet1");
    if (!form.valid()) {
    	top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
           return false;
       }
    var data = form.getData();
    
    data["projectId"] = _projectId;//项目ID
    data["proIntId"] = _proIntId;//流程实例ID    
    data["taskDefKey"] = _taskDefKey;//节点KEY
    data["taskNm"] = _taskNm;//节点名称 
    data["id"]= $("#claimId").val();
    data["payId"] =$("#payId").val();
    data["FKprocessInstanceId"]=$("#FKprocessInstanceId").val();
    data["ctrlKey"] = ctrlKey;
    var amtList=$('input[name="taskAmt"]');
    if(amtList){
    	for(var i=0;i<amtList.length;i++){
        	var amt=amtList[i];
        	data[amt.id]=amt.value;
        }
    }  
    url = '<%=path%>/capital/capclaiminfo/modifyCapClaimInfoByFlow.do';
    var wait_dialog;
    $.ajax({
		type: 'post',
		dataType:'json',
		data:data,
		url: url,
		beforeSend: function(){
	          wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	    },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
				 if(msg.data){
					 $("#cliamId").val(msg.data);
				 }			
			 }else{
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}

//显示流程
function commShowFlow(_pInstId, _audStsCd, _businessKey){
	if(StringUtils.isEmpty(_pInstId)){
		UIUtils.alertWarning(CommonConstant.C_P_INSTANCEID_NOT_HERE);
		return;
	}
	var _formUrl = "/project/audit/toAdditionalInfoPage.do?isDetail=1"+"@@processInstanceId="+_pInstId+"@@projectId=";
	var params = "?pInsId="+_pInstId+"&status="+_audStsCd+"&businessKey="+_businessKey+"&formUrl="+_formUrl;
	Add_navTab('tab_cst_invoice_flow_'+_businessKey,'查看流程',"<%=path%>/flow/flow/toFlowShowPageFowBus.do"+params);
}

//显示流程
function commShowTempFlow(_pInstId, _audStsCd, _businessKey){
	if(StringUtils.isEmpty(_pInstId)){
		UIUtils.alertWarning(CommonConstant.C_P_INSTANCEID_NOT_HERE);
		return;
	}
	var _formUrl = "/project/audit/toTempAdditionalInfoPage.do?isDetail=1"+"@@processInstanceId="+_pInstId+"@@projectId=";
	var params = "?pInsId="+_pInstId+"&status="+_audStsCd+"&businessKey="+_businessKey+"&formUrl="+_formUrl;
	Add_navTab('tab_cst_invoice_flow_'+_businessKey,'查看流程',"<%=path%>/flow/flow/toFlowShowPageFowBus.do"+params);
}

//乘用车流程
function commShowFlowForCarBiz(_pInstId, _audStsCd, _businessKey){
	if(StringUtils.isEmpty(_pInstId)){
		UIUtils.alertWarning(CommonConstant.C_P_INSTANCEID_NOT_HERE);
		return;
	}
	var _formUrl = "/project/audit/toCarBizAdditionalInfoPage.do?isDetail=1"+"@@processInstanceId="+_pInstId+"@@projectId=";
	var params = "?pInsId="+_pInstId+"&status="+_audStsCd+"&businessKey="+_businessKey+"&formUrl="+_formUrl;
	Add_navTab('tab_cst_invoice_flow_'+_businessKey,'查看流程',"<%=path%>/flow/flow/toFlowShowPageFowBus.do"+params);
}
//专车以租代购流程
function commShowFlowForBusBiz(_pInstId, _audStsCd, _businessKey){
	if(StringUtils.isEmpty(_pInstId)){
		UIUtils.alertWarning(CommonConstant.C_P_INSTANCEID_NOT_HERE);
		return;
	}
	var _formUrl = "/project/audit/toBusAdditionalInfoPage.do?isDetail=1"+"@@processInstanceId="+_pInstId+"@@projectId=";
	var params = "?pInsId="+_pInstId+"&status="+_audStsCd+"&businessKey="+_businessKey+"&formUrl="+_formUrl;
	Add_navTab('tab_cst_invoice_flow_'+_businessKey,'查看流程',"<%=path%>/flow/flow/toFlowShowPageFowBus.do"+params);
}
//专车客车流程
function commShowFlowForBusKCBiz(_pInstId, _audStsCd, _businessKey){
	if(StringUtils.isEmpty(_pInstId)){
		UIUtils.alertWarning(CommonConstant.C_P_INSTANCEID_NOT_HERE);
		return;
	}
	var _formUrl = "/project/audit/toBusAdditionalInfoPage.do?isBusKC=1@@isDetail=1"+"@@processInstanceId="+_pInstId+"@@projectId=";
	var params = "?pInsId="+_pInstId+"&status="+_audStsCd+"&businessKey="+_businessKey+"&formUrl="+_formUrl;
	Add_navTab('tab_cst_invoice_flow_'+_businessKey,'查看流程',"<%=path%>/flow/flow/toFlowShowPageFowBus.do"+params);
}
function chosePayeeAcct(){
	//选择  
   var payeeTypCd = liger.get("payeeTypCd").getValue();
   if (!payeeTypCd) {
       $.ligerDialog.SQalert({content: "请先选择收款方类型", SQ_type: "warning"});
       return;
   }
   if (payeeTypCd == 3) {
       return;
   }
   var onOk = function (item, Dialog) {
       if (Dialog.onOk) Dialog.onOk();
   };
   var onCancel = function (item, Dialog) {
       if (Dialog.onCancel) Dialog.onCancel();
   };
   $.ligerDialog.SQopen({
       width: 850,
       height: 350,
       title: '收款账户列表',
       url: '<%=path%>/capital/capclaiminfo/toChoosePayee.do',
       buttons: [
           {
               text: "确定", onclick: onOk, type: 'ok', cls: 'l-dialog-btn-ok'
           }, {
               text: "关闭", onclick: onCancel, type: 'cancel', cls: 'l-dialog-btn-no'
           }
       ],
       data: {payeeTypCd: payeeTypCd, cstId: '${claimInfo.cstId}', splId: '${claimInfo.splId}', purpCd: 1}
   });
}
</script>
</body>
</html>